/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author Gatoper
 */
@Entity
@DiscriminatorValue("Veterinarian")
public class Veterinarian extends Person {

    public Veterinarian(String name, String lasname, String ssn, String birthday, String birthplace) {
        super(name, lasname, ssn, birthday, birthplace);
    }

    public Veterinarian(String focusofpractice, Integer salary, String graduatedAt, String espe) {
        this.Especialitie=espe;
        this.focusofpractice = focusofpractice;
        this.salary = salary;
        this.graduatedAt = graduatedAt;
    }

    public Veterinarian(String focusofpractice, Integer salary, String graduatedAt, String espe, String name, String lasname, String ssn, String birthday, String birthplace) {
        super(name, lasname, ssn, birthday, birthplace);
        this.Especialitie=espe;
        this.focusofpractice = focusofpractice;
        this.salary = salary;
        this.graduatedAt = graduatedAt;
    }
    
    @Column(name = "focusofpractice")
    private String focusofpractice;
    @Column(name = "Especialitie")
    private String Especialitie;    

    @Column(name = "salary")
    private Integer salary;
    @Column(name = "graduatedAt")
    private String graduatedAt;
    @OneToMany(mappedBy="Veterinarian")
    private List<Appointment> appointments=new ArrayList<>();

    public List<Appointment> getAppointments() {
        return appointments;
    }

    public void setAppointments(List<Appointment> appointments) {
        this.appointments = appointments;
    }
    public Veterinarian() {
        super();
    }

    public String getFocusofpractice() {
        return focusofpractice;
    }

    public void setFocusofpractice(String focusofpractice) {
        this.focusofpractice = focusofpractice;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public String getGraduatedAt() {
        return graduatedAt;
    }

    public void setGraduatedAt(String graduatedAt) {
        this.graduatedAt = graduatedAt;
    }

    public String getEspecialitie() {
        return Especialitie;
    }

    public void setEspecialitie(String Especialitie) {
        this.Especialitie = Especialitie;
    }
    
}
